// Locale mirror of `/blog/[slug]` → renders `/de/blog/`. Re-exports the // bare post page verbatim; only `getStaticPaths` differs. // // This is a DYNAMIC route under a DYNAMIC locale segment, so the paths to // pre-render are the CROSS-PRODUCT of every non-default locale × every post // slug (the bare page enumerates just the slugs; here each slug is emitted // once per non-default locale). `voltro build` produces one HTML file per // pair, e.g. /de/blog/hello-static. import { SUPPORTED_LOCALES, DEFAULT_LOCALE } from '../../../../lib/locale' import { posts } from '../../../../content/posts' export { default } from '../../../blog/[slug]/page' export { renderMode, interactive, loader, meta } from '../../../blog/[slug]/page' export const getStaticPaths = async (): Promise< Array<{ params: { locale: string; slug: string } }> > => SUPPORTED_LOCALES .filter((l) => l !== DEFAULT_LOCALE) .flatMap((locale) => posts.map((post) => ({ params: { locale, slug: post.slug } })))